import {Base} from './base.js'

class Sms extends Base{

	constructor(){
		super();
	}

	checkBankAndAdd(smsName,smsBankCard,smsIdCard,callback){
		var param = {
			url: 'sms/bank/card',
			type: 'post',
			data: { name: smsName, idcard: smsIdCard, bankcard:smsBankCard},
			sCallback:function(data){
				callback&&callback(data);
			}
		}
		this.request(param);
	}

	getAgentphone(callback){
		var param = {
			url:'agent/phone',
			sCallback:function(data){
				callback&&callback(data);
			}
		}
		this.request(param);
	}

	sendSmsCode(callback){
		var param = {
			url:'sms/send',
			sCallback:function(data){
				callback&&callback(data)
			}
		}
		this.request(param)
	}
	smsCodeCheck(sms_code,callback){
		var param = {
			url:'sms/check',
			type:'post',
			data: { sms_code:sms_code },
			sCallback:function(data){
				callback&&callback(data)
			}
		};
		this.request(param);
	}

}
export {Sms}